package com.briup.pts.service;

import com.briup.pts.domain.bean.QuarantineRegistration;
import com.github.pagehelper.PageInfo;
import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotNull;

import java.util.List;

/**
 * @author 25095
 * @description
 * @data 2024/11/26-17:21
 */
public interface QuarantineService {
    PageInfo<QuarantineRegistration> pageQueryByCondition(String bQualified,
                                                          String grMechanism,
                                                          Integer pageNum,
                                                          Integer pageSize );

    void deleteById(Integer grId);

    void deleteBatch(@NotNull(message = "id必须存在") @Min(value = 1L, message = "id必须有效")List<Integer> ids);

    void saveOrUpdate(QuarantineRegistration qr);
}
